<template>
  <div>
    <div class="page-header">
      <span class="pre-label">显示:</span
      ><el-checkbox v-model="isShow"></el-checkbox>
    </div>

    <el-form :model="attrData" label-width="100px">
      <el-row>
        <el-col :span="8">
          <el-form-item label="颜色:">
            <el-color-picker v-model="attrData.color"> </el-color-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8"
          ><el-form-item label="线型:">
            <el-select v-model="attrData.shape"
              ><el-option
                v-for="item in speedUnitOptions"
                :key="item.value"
                :value="item.value"
                :label="item.label"
                ><img :src="item.label" /></el-option
            ></el-select> </el-form-item
        ></el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <el-form-item label="线宽:">
            <el-select v-model="attrData.lineWidth"
              ><el-option
                v-for="item in rotationUnitOptions"
                :key="item.value"
                :value="item.value"
                :label="item.label"
                ><img :src="item.label" /></el-option
            ></el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
export default {
  data() {
    return {
      precursor: "",
      options: [{ label: "标准", value: "标准" }],
      attrData: {
        color: "",
        shape: "",
        lineWidth: "",
      },
      typeOptions: [
        { label: "对日自旋稳定", value: "对日自旋稳定" },
        { label: "轨道坐标系", value: "轨道坐标系" },
      ],
      rotationUnitOptions: [
        { label: "DEG", value: "deg" },
        { label: "", value: "" },
      ],
      speedUnitOptions: [
        { label: "REVS/M", value: "REVS/M" },
        { label: "", value: "" },
      ],
    };
  },
};
</script>
<style scoped>
.pre-label {
  padding: 0 10px 0 13px;
}
/deep/.el-color-picker__trigger {
  height: 32px !important;
  width: 240px !important;
  border: 1px solid #5889ba !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/deep/ .el-color-picker__color {
  border: 0 !important;
}
/deep/.el-color-picker__icon {
  transform: translate3d(-7%, -50%, 0) !important;
}
/deep/.el-color-picker__empty,
.el-color-picker__icon {
  left: 93% !important;
}
</style>
